home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / arcer / gnutar10.lha / GnuTAR / GNUTarSource.LHA / source / amiga.c next >
C/C++ Source or Header  |  1991-07-04  |  921b  |  121 lines

  1.  
  2. /*
  3.  *  Amiga specific functions
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <string.h>
  9. #include <sys/dir.h>
  10. #include <sys/stat.h>
  11. #include <time.h>
  12.  
  13. char *
  14. index(ptr, c)
  15. char *ptr;
  16. char c;
  17. {
  18.     return(strchr(ptr, c));
  19. }
  20.  
  21. char *
  22. rindex(ptr, c)
  23. char *ptr;
  24. char c;
  25. {
  26.     return(strrchr(ptr, c));
  27. }
  28.  
  29. char *
  30. getwd(buf)
  31. char *buf;
  32. {
  33.     return(getcwd(buf, MAXPATHLEN));
  34. }
  35.  
  36. int
  37. readlink(path, name, max)
  38. char *path;
  39. char *name;
  40. {
  41.     return(-1);
  42. }
  43.  
  44. int
  45. lstat(buf, s)
  46. char *buf;
  47. struct stat *s;
  48. {
  49.     return(stat(buf, s));
  50. }
  51.  
  52. int
  53. symlink()
  54. {
  55.     return(-1);
  56. }
  57.  
  58. int
  59. utime()
  60. {
  61.     return(0);
  62. }
  63.  
  64. chmod()
  65. {
  66.     return(0);
  67. }
  68.  
  69. umask()
  70. {
  71.     return(0);
  72. }
  73.  
  74. fork()
  75. {
  76.     return(-1);
  77. }
  78.  
  79. execlp()
  80. {
  81.     return(-1);
  82. }
  83.  
  84.  
  85. findgid()
  86. {
  87.     return(0);
  88. }
  89.  
  90. finduid()
  91. {
  92.     return(0);
  93. }
  94.  
  95. pipe()
  96. {
  97.     return(-1);
  98. }
  99.  
  100. dup()
  101. {
  102.     return(-1);
  103. }
  104.  
  105. wait()
  106. {
  107.     return(-1);
  108. }
  109.  
  110.  
  111. int
  112. ftruncate()
  113. {
  114.     return(-1);
  115. }
  116.  
  117. setmode()
  118. {
  119.     return(0);
  120. }
  121.